import request from '@/utils/https'

//-------------------------------------------------------------------------批次管理
//获取批次管理列表-----弃用
export const queryBatchAll = params => request('get','api/queryBatchAll',params)

//获取应用批次信息
export const queryBatch = params => request('get','api/app/queryBatch',params)

//添加批次
export const addBatch = params => request('post','api/app/addBatch',params)

//根据ID查询批次信息
export const editBatchGet = params => request('get','api/app/queryIdBatch',params)

//根据ID修改批次
export const editBatch = params => request("post",'api/app/editBatch',params)

//批次删除
export const delBatch = params => request('post','api/app/deleteBatch',params)

//克隆批次全部管控信息
export const batchCloneAll = params => request('post','api/clone/batchCloneAll',params)

//-------------------------------------------------------------------------SN模块，接口写的有问题重写了，弃用

//删除SN
export const delSn = params => request('get','api/delSn',params)

//上传execl文件
export const uploadExecl = params => request('post','api/uploadExecl',params)
//SN列表
export const querySnAll = params => request('get','api/querySnAll',params)

//添加单条SN
export const addSnPost = params => request('post','api/addSnPost',params)

//execl方式导入方式添加SN码
//export const importSn = params => request('post','api/importSn',params)

//导出SN参数（归属，批次）
export const exportSnGet = params => request('get','api/exportSnGet',params)

//导出SN的execl文件
export const exportSnPost = params => request('get','api/exportSnPost',params)

//更新批次
export const updateBatch = params => request('post','api/updateBatch',params)

//批次管理的批次参数，sd后端
export const updateBatchGet = params => request('get','api/updateBatchGet',params)

//SN编辑需要的参数
export const editSnDataGET = params => request('get','api/editSnDataGET',params)

//编辑SN
export const editSnDataPost = params => request('post','api/editSnDataPost',params)


//添加单条SN需要参数( 批次，归属 )
export const addSnGet = params => request('get','api/addSnGetData',params)

//-------------------------------------------------------------------------设备归属管理
//设备归属管理列表
export const deviceList = params => request('get','api/deviceList',params)

//设备归属变更用户参数
export const deviceGetParam = params => request('get','api/deviceGetParam',params)

//设备转交归属变更用户参数
export const deviceTransferGetParam = params => request('get','api/deviceTransferGetParam',params)

//设备转交
export const deviceTransfer = params => request('post','api/deviceTransfer',params)

//设备回收
export const deviceRecycle = params => request('post','api/deviceRecycle',params)

//查询设备归属
export const queryModelSn = params => request('get','api/queryModelSn',params)

//导出设备归属sn码信息
export const exportModelSn = params => request('post','api/exportModelSn',params)

//-------------------------------------------------------------------------新SN模块
//获取sn信息
export const querySn = params => request('get','api/querySn',params)

//删除sn信息
export const deleteSn = params => request('post','api/deleteSn',params)

//设备维护获取归属用户信息
export const getAscription = params => request('get','api/getAscription',params)

//获取小程序家长信息
export const getClientUser = params => request('get','api/getClientUser',params)

//设备维护获取批次信息
export const getBatch = params => request('get','api/getBatch',params)

//添加sn码信息
export const postAscription = params => request('post','api/addSn',params)

//按编号获取sn信息
export const queryIdSn = params => request("get",'api/queryIdSn',params)

//编辑sn信息
export const editSn = params => request("post",'api/editSn',params)

//导出sn码信息
export const downloadSn = params => request('post','api/downloadSn',params)

//导入sn
export const importSn = params => request('post','api/importSn',params)

//批次管理获取批次
export const getBatchTwo = params => request('get','api/getBatchTwo',params)

//批次管理
export const batchManager = params => request('post','api/batchManager',params)

//批量修改设备类型与套餐
export const batchEditSNInfo = params => request('post', 'api/batchEditSNInfo', params)

//设备转交或回收
export const snTransferOrRecovery = params =>request('post','api/snTransferOrRecovery',params)

//发起截图
export const launchScreenshot = params => request('post','api/launchScreenshot',params)

//获取截图信息
export const querySnScreens = params => request('get','api/querySnScreens',params)

//清除sn截图信息
export const deleteAll = params => request('post','api/deleteAll',params)

//获取设备信息
export const getEquip = params => request('get','api/getEquip',params)

//刷新推送获取设备信息
export const refreshEquipParam = params => request('post','api/refreshEquipParam',params)

//APP信息
export const getAppBySn = params => request('get','api/getAppBySn',params)

//单个sn恢复出厂模式
export const singleSnReset = params => request('post','api/singleSnReset',params)

//单个sn重启设备
export const singleSnRestart = params => request('post','api/singleSnRestart',params)

//强制停用设备应用
export const forceStopApp = params => request('post','api/forceStopApp',params)

//清除安装应用缓存信息
export const clearInstallAppCache = params => request('post','api/desktop/clearInstallAppCache',params)

//单个sn霸屏和取消霸屏
export const singleSnScreen = params => request('post','api/singleSnScreen',params)

//导入删除sn码
export const importDeleteSn = params => request('post','api/importDeleteSn',params)

//获取代理商信息
export const getAgentUser = params => request('get','api/sn/getAgentUser',params)
//获取代理商和学校的信息
export const getAgentAndSchool = params => request('get','api/sn/getAgentAndSchool',params)

//获取应用图标桌面可见性
export const appIconList = params => request('get','api/appIconList',params)

//获取时间管控
export const timeControlList = params => request('get','api/timeControlList',params)

//获取应用白名单信息
export const whiteAppList = params => request('get','api/whiteAppList',params)

//获取影音娱乐管控设置
export const otherSettingList = params => request('get','api/otherSettingList',params)

//获取浏览器网址白名单
export const browserAllList = params => request('get','api/browserAllList',params)

//获取浏览器主页书签
export const labelAllList = params => request('get','api/labelAllList',params)

//获取应用管理
export const appControlList = params => request('get','api/appControlList',params)

//获取应用霸屏
export const appScreenList = params => request('get','api/appScreenList',params)

//获取应用内部跳转
export const appGroundAllList = params => request('get','api/appGroundAllList',params)

//获取应用内部广告
export const appInsideList = params => request('get','api/appInsideList',params)

//获取应用缓存清理
export const clearAppList = params => request('get','api/clearAppList',params)

export const addEyesConfig = params => request('post','api/addEyesConfig',params)

export const queryEyesConfig = params => request('get','api/queryEyesConfig',params)

export const editEyesConfig = params => request('post','api/editEyesConfig',params)

export const delEyesConfig = params => request('get','api/delEyesConfig',params)

export const addSystemRomName = params => request('post','api/addSystemRomName',params)

export const querySystemRomName = params => request('get','api/querySystemRomName',params)

export const editSystemRomName = params => request('post','api/editSystemRomName',params)

export const delSystemRomName = params => request('get','api/delSystemRomName',params)

